
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.Xml;
using Tathata.Common.BLL.Entities;
using Tathata.Common.BLL.Managers;
using System.IO;
using Tathata.Common.BLL.EntityCollections;
using Tathata.Common.Utils;
//using Tathata.Common.ExportImport;
namespace Tathata.Web.Administration
{
    public partial class Administration_Manufacturers : BaseNopAdministrationPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BindGrid();
            }
        }

        protected void BindGrid()
        {
            ManufacturerCollection manufacturerCollection = ManufacturerManager.GetAllManufacturers();
            gvManufacturers.DataSource = manufacturerCollection;
            gvManufacturers.DataBind();
        }

        protected void btnExportXML_Click(object sender, EventArgs e)
        {
            //if (Page.IsValid)
            //{
            //    try
            //    {
            //        string fileName = string.Format("manufacturers_{0}.xml", DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss"));
            //        string xml = ExportManager.ExportManufacturersToXML();
            //        CommonHelper.WriteResponseXML(xml, fileName);
            //    }
            //    catch (Exception exc)
            //    {
            //        ProcessException(exc);
            //    }
            //}
        }

    }
}